package com.lhkj.ct.base.utils.chart;

import java.awt.*;

/**
 *
 * @author wangzhongxing
 * @version $Id: JFreeChartConfig.java, v 0.1 2019年03月26日 4:32 PM wangzhongxing Exp $
 */
public class JFreeChartConfig {

    /**
     * 图表主题
     */
    private String title;
    /**
     * 图表横坐标标题
     */
    private String categoryAxisLabel;
    /**
     * 图表纵坐标标题
     */
    private String valueAxisLabel;
    /**
     * 图表宽度
     */
    private int width = 600;
    /**
     * 图表高度
     */
    private int height = 500;
    /**
     * 图表边框颜色, 默认白色
     */
    private Color  outlineColor = SystemColor.WHITE;
    /**
     * 背景颜色, 默认白色
     */
    private Color  backgroundColor = SystemColor.WHITE;

    public JFreeChartConfig() {
    }

    public JFreeChartConfig(String title, String categoryAxisLabel, String valueAxisLabel, int width, int height) {
        this.title = title;
        this.categoryAxisLabel = categoryAxisLabel;
        this.valueAxisLabel = valueAxisLabel;
        this.width = width;
        this.height = height;
    }

    //    /**
//     * 默认为水平
//     */
//    private PlotOrientation plotOrientation = PlotOrientation.HORIZONTAL;
    /**
     * 背景图
     */
    private Image  backgroundImage;

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getCategoryAxisLabel() {
        return categoryAxisLabel;
    }

    public void setCategoryAxisLabel(String categoryAxisLabel) {
        this.categoryAxisLabel = categoryAxisLabel;
    }

    public String getValueAxisLabel() {
        return valueAxisLabel;
    }

    public void setValueAxisLabel(String valueAxisLabel) {
        this.valueAxisLabel = valueAxisLabel;
    }

    public int getWidth() {
        return width;
    }

    public void setWidth(int width) {
        this.width = width;
    }

    public int getHeight() {
        return height;
    }

    public void setHeight(int height) {
        this.height = height;
    }

    public Color getOutlineColor() {
        return outlineColor;
    }

    public void setOutlineColor(Color outlineColor) {
        this.outlineColor = outlineColor;
    }

    public Color getBackgroundColor() {
        return backgroundColor;
    }

    public void setBackgroundColor(Color backgroundColor) {
        this.backgroundColor = backgroundColor;
    }

    public Image getBackgroundImage() {
        return backgroundImage;
    }

    public void setBackgroundImage(Image backgroundImage) {
        this.backgroundImage = backgroundImage;
    }


}
